package cn.bonoon.kernel.security;

import org.batatasframework.util.RunningStatistics;

public interface LogonUserRuntime {
	String getUsername();
	
	String getDisplayName();
	
	/** 已经修改密码 */
	void changePwd();

	/** 是否需要强制修改密码 */
	boolean needChangePwd();

	void loginSuccess(String sessionId, String ip);

	String getSessionId();
	String getIp();
	String getLoginAt();
	
	RunningStatistics getStatistics();
	
	long visit(long start, long end);
}
